package com.ktgj.customer.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktgj.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WholeMallOrderVO implements Serializable {
    public WholeMallOrderVO() {
        this.mallOrderSpec = new ArrayList<>();
    }

    /** 订单主键 */
    private Long orderId;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal amount;

    /** 需要支付金额 = amount - coupon_price */
    @Excel(name = "需要支付金额 = amount - coupon_price")
    private BigDecimal payAmount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 商品信息 */
    @Excel(name = "商品信息")
    private List<WholeMallOrderSpecVO> mallOrderSpec;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<WholeMallOrderSpecVO> getMallOrderSpec() {
        return mallOrderSpec;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
